{Body Text}TextPak contains full support for hyperlinks from text. Any text style can be marked as a hyperlink, in which case any text rendered using that style can be clicked on. In this demo, the {In Glossary}In Glossary{Body Text} style is an example. When you click on any such text the hyperlink is activated. In this demo a glossary box pops-up with the relevant text. It could just as easily contain images, movies or anything else you wish to code.
{Body Text}This particular behaviour is built-in to the TextPak_Glossary class. In this demo a database of glossary defintions is read into memory when the demo is first run. When you click on a highlit word, the system looks up that word in the database and displays the associated text file in the pop-up box. The appeareance, size and position of the box are defined in the code, with sensible default values supplied.
{Body Text}But glossaries are just one example of the power of TextPak hyperlinks: you can attach any method you wish to a hyperlink. This {In Glossary}trigger{Body Text} word is a hyperlink that takes you to the contact page of this demo.